package com.sykj.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sykj.dao.UserDao;
import com.sykj.model.User;
@Service
public class UserServiceImpl implements UserService {
	@Autowired
	UserDao userDao;
	
	@Override
	public User getUser(String username) {
		
		return userDao.getUser(username);
	}

	@Override
	public void register(User user) {
		userDao.register(user);
	}

}
